package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author  djq
 * @date 2023/5/11 14:11
 * @description: 
 */

/**
 * 公司信息
 */
@ApiModel(description = "公司信息")
@Data
public class CompanyDto extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 公司ID
     */
    @ApiModelProperty(value = "公司ID")
    @Excel(name = "公司ID",orderNum = "0",width = 50)
    private Integer compId;

    /**
     * 公司编号
     */
    @NotNull(message = "公司代码不能为空")
    @ApiModelProperty(value = "公司编号")
    @Excel(name = "公司编号",orderNum = "0",width = 50)
    private String compCode;

    /**
     * 公司名称
     */
    @NotNull(message = "公司名称不能为空")
    @NotBlank(message = "公司名称不能为空")
    @Length(max = 50)    @ApiModelProperty(value = "公司名称")
    @Excel(name = "公司名称",orderNum = "0",width = 50)
    private String compName;

    /**
     * 所属机构
     */
    @ApiModelProperty(value = "所属机构")
    @Excel(name = "所属机构",orderNum = "0",width = 50)
    private Integer orgaId;

    /**
     * 所属区域
     */
    @ApiModelProperty(value = "所属区域")
    @Excel(name = "所属区域",orderNum = "0",width = 50)
    private Integer areaId;

    /**
     * 父级区域
     */
    @ApiModelProperty(value = "父级区域")
    @Excel(name = "父级区域",orderNum = "0",width = 50)
    private Integer areaParentId;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @Excel(name = "地址",orderNum = "1",width = 50)
    private String compAddress;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    @Excel(name = "经度",orderNum = "0",width = 50)
    private Double compLongitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    @Excel(name = "纬度",orderNum = "0",width = 50)
    private Double compLatitude;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    @Excel(name = "负责人",orderNum = "0",width = 50)
    private String compHead;


    /**
     * 备注说明
     */
    @ApiModelProperty(value = "备注说明")
    @Excel(name = "备注说明",orderNum = "0",width = 50)
    private String compNote;
}